#ifndef HPOLICYKITHELPER_H
#define HPOLICYKITHELPER_H
#include "devcommon_global.h"

#include <QObject>

class DEVCOMMONSHARED_EXPORT HPolicyKitHelper : public QObject
{
    Q_OBJECT
public:
    explicit HPolicyKitHelper(QObject *parent = nullptr);

    static HPolicyKitHelper* Instance(QObject *parent = nullptr);

    virtual bool checkAuthorization();
    bool checkAuthorization(const QString &actionId, qint64 applicationPid);
signals:
    // 权限校验完成
    void checkAuthorizationFinished();

public slots:
    virtual bool checkAuthorizationHelp();
};

#endif // HPOLICYKITHELPER_H
